package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class ArticleDownSetting implements Serializable {

	private static final long serialVersionUID = 3223207903251272023L;

	//fields
	private java.lang.Integer id;
	private java.lang.String name;
	private java.lang.String titleStartTag;
	private java.lang.String contentStartTag;
	private java.lang.String contentEndTag;
	private java.lang.String imageStartTag;
	private java.lang.String imageDescrTag;
	private java.lang.String sourceStartTag;
	private java.sql.Timestamp createTime;

	//default constructor
	public ArticleDownSetting() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.String getName() {
		return name;
	}
	public java.lang.String getTitleStartTag() {
		return titleStartTag;
	}
	public java.lang.String getContentStartTag() {
		return contentStartTag;
	}
	public java.lang.String getContentEndTag() {
		return contentEndTag;
	}
	public java.lang.String getImageStartTag() {
		return imageStartTag;
	}
	public java.lang.String getImageDescrTag() {
		return imageDescrTag;
	}
	public java.lang.String getSourceStartTag() {
		return sourceStartTag;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setName(java.lang.String name) {
		this.name = name;
	}
	public void setTitleStartTag(java.lang.String titleStartTag) {
		this.titleStartTag = titleStartTag;
	}
	public void setContentStartTag(java.lang.String contentStartTag) {
		this.contentStartTag = contentStartTag;
	}
	public void setContentEndTag(java.lang.String contentEndTag) {
		this.contentEndTag = contentEndTag;
	}
	public void setImageStartTag(java.lang.String imageStartTag) {
		this.imageStartTag = imageStartTag;
	}
	public void setImageDescrTag(java.lang.String imageDescrTag) {
		this.imageDescrTag = imageDescrTag;
	}
	public void setSourceStartTag(java.lang.String sourceStartTag) {
		this.sourceStartTag = sourceStartTag;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof ArticleDownSetting))
			return false;

		final ArticleDownSetting articleDownSetting = (ArticleDownSetting)other;
		if (!this.id.equals(articleDownSetting.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("ArticleDownSetting[")
			.append("id=").append(id).append(", ")
			.append("name=").append(name).append(", ")
			.append("titleStartTag=").append(titleStartTag).append(", ")
			.append("contentStartTag=").append(contentStartTag).append(", ")
			.append("contentEndTag=").append(contentEndTag).append(", ")
			.append("imageStartTag=").append(imageStartTag).append(", ")
			.append("imageDescrTag=").append(imageDescrTag).append(", ")
			.append("sourceStartTag=").append(sourceStartTag).append(", ")
			.append("createTime=").append(createTime).append("]").toString();
	}
}